home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>16.3.  Add Border</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="filters-decor.html" title="16.  Decor Filters" />
- <link rel="prev" href="script-fu-add-bevel.html" title="16.2.  Add Bevel" />
- <link rel="next" href="script-fu-coffee-stain.html" title="16.4.  Coffee Stain" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">16.3. 
- <span lang="en" xml:lang="en">Add Border</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="script-fu-add-bevel.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">16. 
- <span lang="en" xml:lang="en">Decor Filters</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="script-fu-coffee-stain.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect2" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="script-fu-addborder"></a>16.3. 
- <span lang="en" xml:lang="en">Add Border</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2357 $</td>
- <td align="left">2007-08-18</td>
- <td align="left">ude</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2789478" class="indexterm"></a>
- <a id="id2789491" class="indexterm"></a>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2789500"></a>16.3.1. 
- <span lang="en" xml:lang="en">Overview</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2789511"></a>
- <p class="title">
- <b>Figure 16.325. 
- <span lang="en" xml:lang="en">
- Example for the “<span class="quote">Add Border</span>” filter
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/taj_orig.jpg" alt="Example for the Add Border filter" />
- <div class="caption">
- <p>Original image</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/filters/examples/decor-taj-addborder.jpg" alt="Example for the Add Border filter" />
- <div class="caption">
- <p>Added border</p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- This filter just does what its name says: it adds a border to the image.
- You can specify the thickness of the border as well as the color. The
- four sides of the border are colored in different shades, so the image
- area will appear raised.
- </p>
- <p>
- The image will be enlarged by the border size, it won't be painted over.
- </p>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2789591"></a>16.3.2. 
- <span lang="en" xml:lang="en">Options</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2789602"></a>
- <p class="title">
- <b>Figure 16.326. 
- <span lang="en" xml:lang="en">“<span class="quote">Add Border</span>” options</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/options-decor-addborder.png" alt="Add Border options" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Border X size, Border Y size</span>
- </dt>
- <dd>
- <p>
- Here you can select the thickness of the added border, in pixels.
- X size (left an right) and Y size (top and bottom) may be
- different. Maximum is 250 pixels.
- </p>
- </dd>
- <dt>
- <span class="term">Border color</span>
- </dt>
- <dd>
- <p>
- Clicking on this button brings up the color selector dialog that
- allows you to choose an “<span class="quote">average</span>” border color (see
- below, <span class="guilabel">Delta value on color</span>).
- </p>
- </dd>
- <dt>
- <span class="term">Delta value on color</span>
- </dt>
- <dd>
- <p>
- This option makes the border sides to be colored in different
- shades and thus makes the image to appear raised. The actual
- color of the respective border side is computed for every color
- component red, green, and
- blue<sup>[<a id="id2789706" href="#ftn.id2789706" class="footnote">11</a>]</sup>
- from the “<span class="quote">average</span>” <span class="guilabel">Border color</span>
- as follows:<sup>[<a id="id2789735" href="#ftn.id2789735" class="footnote">12</a>]</sup>
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>Top shade = Border color + Delta</p>
- </li>
- <li>
- <p>Right shade = Border color - ¬Ω Delta</p>
- </li>
- <li>
- <p>Bottom shade = Border color - Delta</p>
- </li>
- <li>
- <p>Left shade = Border color + ¬Ω Delta</p>
- </li>
- </ul>
- </div>
- <div class="figure">
- <a id="id2789785"></a>
- <p class="title">
- <b>Figure 16.327. 
- <span lang="en" xml:lang="en">Delta examples</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/addborder-delta.png" alt="Delta examples" />
- <div class="caption">
- <p>
- “<span class="quote">Add Border</span>” filter applied with
- <span class="guilabel">Delta value</span> 25, then with 75, 125, 175,
- and 225.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- Example: the default color is blue (38,31,207), default delta is
- 25. So the shades of the borders are: top: (38,31,207) +
- (25,25,25) = (63,56,232), right: (38,31,207) + (-13,-13,-13) =
- (25,18,194), etc.
- </p>
- </dd>
- </dl>
- </div>
- </div>
- <div class="footnotes">
- <br />
- <hr width="100" align="left" />
- <div class="footnote">
- <p><sup>[<a id="ftn.id2789706" href="#id2789706" class="para">11</a>] </sup>
- See <a class="link" href="gimp-images-in.html#gimp-concepts-image-types" title="1.  Image Types">image types</a> or
- <a class="xref" href="glossary.html#glossary-rgb" title="RGB">
- <span lang="en" xml:lang="en">RGB</span>
- </a>.
- </p>
- </div>
- <div class="footnote">
- <p><sup>[<a id="ftn.id2789735" href="#id2789735" class="para">12</a>] </sup>
- Resulting values less than 0 are set to 0, values greater than
- 255 are set to 255.
- </p>
- </div>
- </div>
- </div>
- <div class="navfooter">
- <hr />
- <table width="100%" summary="Navigation footer">
- <tr>
- <td width="40%" align="left"><a accesskey="p" href="script-fu-add-bevel.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="filters-decor.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="script-fu-coffee-stain.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="script-fu-add-bevel.html">16.2. 
- <span lang="en" xml:lang="en">Add Bevel</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="script-fu-coffee-stain.html">16.4. 
- <span lang="en" xml:lang="en">Coffee Stain</span>
- </a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-